package com.cn.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cn.api.ApiCode;
import com.cn.api.ApiResult;
import com.cn.mapper.ShopParamsMapper;
import com.cn.pojo.shop.ShopParams;
import com.cn.service.ShopParamsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 28631
* @description 针对表【shop_params(规格表)】的数据库操作Service实现
* @createDate 2024-02-29 15:12:20
*/
@Service
public class ShopParamsServiceImpl extends ServiceImpl<ShopParamsMapper, ShopParams>
    implements ShopParamsService {

    @Autowired
    private ShopParamsMapper shopParamsMapper;
    /**
     * 查询规格参数
     * @return
     */
    @Override
    public ApiResult queryParams() {
        List<ShopParams> shopParams = shopParamsMapper.selectList(null);
        return ApiResult.success(shopParams);
    }
}




